# Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
  factory :book do
    category_id 1
    isbn "123456"
    description "this is a book"
    total_rate 1
    copies 1
    publish_date "2012-11-17"
    publisher "Nguyen An"
    author "Nguyen An"
    amazon_link "www.example.com"
    name "Book for everyone"
  end
end
